#########################
#   Author : Leon yu    #
#   Date : 2025/06/12   #
#   Id : SM2772         #
#########################
from apiRespsAnalyze import *

def queryTaxIncomeReportResult(startTime, endTime):
    result = dict()
    # 应税收入
    result['taxableAmount'] = 0
    # 免税收入
    result['taxFreeAmount'] = 0
    # 销售总额
    result['actualAmount'] = 0
    queryTaxIncomeReport = analyzeQueryTaxIncomeReport(startTime=startTime, endTime=endTime)
    if queryTaxIncomeReport:
        result['taxableAmount'] = queryTaxIncomeReport['taxableAmount']
        result['taxFreeAmount'] = queryTaxIncomeReport['taxFreeAmount']
        result['actualAmount'] = queryTaxIncomeReport['actualAmount']
    
    return result